/* 
 * oms，一个基于J2EE架构运营支撑平台
 * Copyright © GrayRabbit Co., Ltd. All rights reserved.
 * Department:运营department
 * 更多信息请访问：
 * http://code.google.com/p/gray-rabbit-cms/
 */
package org.grayrabbit.cms.dao.publish; 

import java.util.List;

import org.grayrabbit.cms.entity.PublishLog;
import org.grayrabbit.cms.vo.publish.PublishLogBean;

import org.grayrabbit.dao.GenericDao;
import org.grayrabbit.dao.util.Page;
import org.grayrabbit.dao.util.QueryCondition;

/**
 * <b>PublishLog</b>的DAO接口

 * @version 1.0,创建时间:2012-01-05 17:51:25 
 */
public interface PublishLogDao extends GenericDao<PublishLog, String>{
	
	/**
	 * 根据bean组装查询条件
	 */
	public QueryCondition assembly(PublishLogBean bean);
	/**
	 * 根据bean组装统计查询条件
	 */
	public QueryCondition assemblyCount(PublishLogBean bean);
	public int count(PublishLogBean bean);
	/**
	 * 根据bean组装查询条件(名称参数)
	 */
	public QueryCondition assermblyQuery(PublishLogBean bean);
	
	/**
	 * 根据bean组装统计查询条件(名称参数)
	 */
	public QueryCondition assemblyQueryCount(PublishLogBean bean);
	/**
	 * 填充分页组件
	 * @param page
	 * @param bean
	 */
	public List<PublishLog> findByPage(Page<PublishLog> page, PublishLogBean bean);
	
	/**
	 * 查询发布日志，排序根据时间顺序排列
	 * @param taskId 发布任务id
	 * @param offset 偏移量
	 * @return
	 */
	public List<PublishLog> findByTaskId(String taskId,int offset);

}